<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/libs/fileext/rtf/formatting.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('formatting_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">formatting.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="formatting_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;deque&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;../../pugixml/pugixml.hpp&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacertf.html">rtf</a> {</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classrtf_1_1_color.html">   25</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_color.html">Color</a> {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="classrtf_1_1_color.html">Color</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classrtf_1_1_color.html#a6e7d4e343801994541d8550d9951a222">operator==</a>(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_color.html">Color</a>&amp; obj) <span class="keyword">const</span>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_color.html">Color</a>&amp; obj) <span class="keyword">const</span>;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <a class="code" href="classrtf_1_1_color.html">Color</a>&amp; <a class="code" href="classrtf_1_1_color.html#acdb2199339f3ef586c7e42fb35a46e91">operator=</a>(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_color.html">Color</a>&amp; obj);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    std::string <a class="code" href="classrtf_1_1_color.html#af65d99a08f811cd1b4909d9a4f2ac7fd">toString</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classrtf_1_1_color.html#a7333ebfdcbb73e7eda4c40d1ec4ac94f">   46</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classrtf_1_1_color.html#a7333ebfdcbb73e7eda4c40d1ec4ac94f">m_red</a>   = -1;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classrtf_1_1_color.html#afc27ed79634d577c913317d5d91f050c">   48</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classrtf_1_1_color.html#afc27ed79634d577c913317d5d91f050c">m_green</a> = -1;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classrtf_1_1_color.html#a593f64ddc046b5955e21d42cf404ecb2">   50</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classrtf_1_1_color.html#a593f64ddc046b5955e21d42cf404ecb2">m_blue</a>  = -1;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;};</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html">   59</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_font.html">Font</a> {</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="classrtf_1_1_font.html">Font</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classrtf_1_1_color.html#a6e7d4e343801994541d8550d9951a222">operator==</a>(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_font.html">Font</a>&amp; obj) <span class="keyword">const</span>;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_font.html">Font</a>&amp; obj) <span class="keyword">const</span>;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="classrtf_1_1_font.html">Font</a>&amp; <a class="code" href="classrtf_1_1_color.html#acdb2199339f3ef586c7e42fb35a46e91">operator=</a>(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_font.html">Font</a>&amp; obj);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbc">   71</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbc">fontFamily</a> {</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbcac20b2938c3710505526750367ac9e576">   72</a></span>&#160;        <a class="code" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbcac20b2938c3710505526750367ac9e576">FF_NONE</a>,       </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca056ebdf27aa5d7324a0dc7870c4a9a78">   73</a></span>&#160;        <a class="code" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca056ebdf27aa5d7324a0dc7870c4a9a78">FF_SERIF</a>,      </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca727772ca570769a78885c7be944305d7">   74</a></span>&#160;        <a class="code" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca727772ca570769a78885c7be944305d7">FF_SANS_SERIF</a>, </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca572189f9ff6626d84a2b3af3e419495f">   75</a></span>&#160;        <a class="code" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca572189f9ff6626d84a2b3af3e419495f">FF_MONOSPACE</a>,  </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca502cd5f31664c688bca6ae3d48d68fc4">   76</a></span>&#160;        <a class="code" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca502cd5f31664c688bca6ae3d48d68fc4">FF_CURSIVE</a>,    </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbcab25b4cc3b6659c5a82e2028d23bc1b71">   77</a></span>&#160;        FF_FANTASY     </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    };</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbc">fontFamily</a> m_family = FF_NONE;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a220bf3f3666f937ae29a5ef49abbc65d">   81</a></span>&#160;    std::string <a class="code" href="classrtf_1_1_font.html#a220bf3f3666f937ae29a5ef49abbc65d">m_name</a>;</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classrtf_1_1_font.html#a7f5e93fc0caf39a22227464d66586cb1">  106</a></span>&#160;    <span class="keywordtype">int</span> m_charset = 0;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;};</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html">  115</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_formatting.html">Formatting</a> {</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <a class="code" href="classrtf_1_1_formatting.html">Formatting</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classrtf_1_1_color.html#a6e7d4e343801994541d8550d9951a222">operator==</a>(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_formatting.html">Formatting</a>&amp; obj) <span class="keyword">const</span>;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_formatting.html">Formatting</a>&amp; obj) <span class="keyword">const</span>;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <a class="code" href="classrtf_1_1_formatting.html">Formatting</a>&amp; <a class="code" href="classrtf_1_1_color.html#acdb2199339f3ef586c7e42fb35a46e91">operator=</a>(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_formatting.html">Formatting</a>&amp; obj);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a7ed672340072a8e5af6073e4c8226bfc">  133</a></span>&#160;    <span class="keywordtype">bool</span> m_isBold = <span class="keyword">false</span>;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a23850526d7093669cbecd9c607301339">  141</a></span>&#160;    <span class="keywordtype">bool</span> m_isItalic = <span class="keyword">false</span>;</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a46f4f02c323e85f2092825c8b32aec27">  149</a></span>&#160;    <span class="keywordtype">bool</span> m_isUnderlined = <span class="keyword">false</span>;</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#aab925f1e4b6688d682fbeb5609375bd1">  157</a></span>&#160;    <span class="keywordtype">bool</span> m_isStruckOut = <span class="keyword">false</span>;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#af406bbbef45d0082172968a7145c4252">  165</a></span>&#160;    <span class="keywordtype">bool</span> m_isOutlined = <span class="keyword">false</span>;</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#ad2b5266e49fa3205ef8e4d1da64e58bd">  173</a></span>&#160;    <span class="keywordtype">bool</span> m_isSub = <span class="keyword">false</span>;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#aa30dc62479fefcb95d9ae11add42cd00">  181</a></span>&#160;    <span class="keywordtype">bool</span> m_isSup = <span class="keyword">false</span>;</div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a263ecd6be00cd636bbfffdc523d0bad1">  183</a></span>&#160;    <span class="keywordtype">int</span> m_fontSize = 0;</div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a84ea5c5641c3b7e46cd2084fe46cd1f4">  185</a></span>&#160;    <a class="code" href="classrtf_1_1_font.html">Font</a> <a class="code" href="classrtf_1_1_formatting.html#a84ea5c5641c3b7e46cd2084fe46cd1f4">m_font</a>;</div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#ad59c5977351d9240b2f52297e09fd7f8">  187</a></span>&#160;    <a class="code" href="classrtf_1_1_color.html">Color</a> <a class="code" href="classrtf_1_1_formatting.html#ad59c5977351d9240b2f52297e09fd7f8">m_fontColor</a>;</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a72fba585e402349dc22f903602932111">  189</a></span>&#160;    <a class="code" href="classrtf_1_1_color.html">Color</a> <a class="code" href="classrtf_1_1_formatting.html#a72fba585e402349dc22f903602932111">m_backgroundColor</a>;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a35e2c51c16999c9a2f1d678c28baf9bf">  191</a></span>&#160;    std::string <a class="code" href="classrtf_1_1_formatting.html#a35e2c51c16999c9a2f1d678c28baf9bf">m_horizontalAlign</a>;</div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a17a5883a2d8486353dfa7683d29c27a9">  193</a></span>&#160;    std::string <a class="code" href="classrtf_1_1_formatting.html#a17a5883a2d8486353dfa7683d29c27a9">m_verticalAlign</a>;</div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#a12dcb7ce7d64761d03782ab2e6a22017">  195</a></span>&#160;    <span class="keywordtype">bool</span> m_parInTable = <span class="keyword">false</span>;</div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="classrtf_1_1_formatting.html#ad08cba9978340e3de246ac6a04d071a9">  197</a></span>&#160;    <span class="keywordtype">int</span> m_listLevel = 0;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;};</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classrtf_1_1_html_text.html">  206</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_html_text.html">HtmlText</a> {</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <a class="code" href="classrtf_1_1_html_text.html">HtmlText</a>(<span class="keyword">const</span> <a class="code" href="classrtf_1_1_formatting.html">Formatting</a>&amp; format, <span class="keywordtype">bool</span> addStyle);</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keywordtype">void</span> add(T str);</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordtype">void</span> addSubtree(pugi::xml_node&amp; node) <span class="keyword">const</span>;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="keywordtype">void</span> clearText();</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <span class="keywordtype">void</span> close();</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keywordtype">void</span> addStyle(pugi::xml_node&amp; node, <span class="keyword">const</span> std::string&amp; styleName, <span class="keywordtype">bool</span> oldStyle, <span class="keywordtype">bool</span> newStyle);</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="classrtf_1_1_html_text.html#afd2bd7cab79422fbbdf1b0089a4a5a23">  262</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classrtf_1_1_formatting.html">Formatting</a>&amp; <a class="code" href="classrtf_1_1_html_text.html#afd2bd7cab79422fbbdf1b0089a4a5a23">m_format</a>;</div><div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="classrtf_1_1_html_text.html#a79aed437e84ea299e0959098996fbd90">  264</a></span>&#160;    std::deque&lt;Formatting&gt; <a class="code" href="classrtf_1_1_html_text.html#a79aed437e84ea299e0959098996fbd90">m_formatStack</a>;</div><div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="classrtf_1_1_html_text.html#a2a52e7929dcad54129d7b8d0f4f8089b">  266</a></span>&#160;    std::string <a class="code" href="classrtf_1_1_html_text.html#a2a52e7929dcad54129d7b8d0f4f8089b">m_text</a>;</div><div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classrtf_1_1_html_text.html#ab8cee38e34358e58157c5d1195a8b680">  268</a></span>&#160;    pugi::xml_document <a class="code" href="classrtf_1_1_html_text.html#ab8cee38e34358e58157c5d1195a8b680">m_tree</a>;</div><div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="classrtf_1_1_html_text.html#a31c44064b963190628b79183cfd0cccc">  270</a></span>&#160;    std::vector&lt;pugi::xml_node&gt; <a class="code" href="classrtf_1_1_html_text.html#a31c44064b963190628b79183cfd0cccc">m_nodeList</a>;</div><div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="classrtf_1_1_html_text.html#ab763a0857a581861b88ce7b032ee687b">  272</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classrtf_1_1_html_text.html#ab763a0857a581861b88ce7b032ee687b">m_addStyle</a>;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;};</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="classrtf_1_1_html_text.html#ae9fd2e2bf0b5f93bfd6654442b271772">  277</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classrtf_1_1_html_text.html#ae9fd2e2bf0b5f93bfd6654442b271772">HtmlText::add</a>(T str) {</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <span class="keywordflow">if</span> (!m_addStyle) {</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        m_text += str;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    }</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <a class="code" href="classrtf_1_1_formatting.html">Formatting</a> lastFormat;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="keywordflow">if</span> (!m_formatStack.empty()) {</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keywordtype">int</span> count = 0;</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        std::deque&lt;Formatting&gt;::reverse_iterator it;</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keywordflow">for</span> (it = m_formatStack.rbegin(); it != m_formatStack.rend(); ++it) {</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            <span class="keywordflow">if</span> (*it == m_format)</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;            ++count;</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        }</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        <span class="keywordflow">if</span> (count == 0) {</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;            m_text += str;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;        }</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keywordflow">if</span> (it != m_formatStack.rend()) {</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;            <span class="keywordflow">while</span> (count--) {</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                close();</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                m_nodeList.pop_back();</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                m_formatStack.pop_back();</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            }</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;            m_text += str;</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        }</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;        lastFormat = m_formatStack.back();</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    }</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="comment">// Get parent node</span></div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keyword">auto</span> node = m_nodeList.back();</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    std::string nodeName = node.name();</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordflow">if</span> (nodeName.empty()) {</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        node = node.append_child(<span class="stringliteral">&quot;parent&quot;</span>);</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        m_nodeList.emplace_back(node);</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;        nodeName = <span class="stringliteral">&quot;parent&quot;</span>;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    }</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    std::unordered_map&lt;std::string, std::string&gt; parentStyleMap;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    std::unordered_map&lt;std::string, std::string&gt; elementStyleMap;</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <span class="comment">// Get parent style</span></div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="keywordflow">if</span> (!m_format.m_horizontalAlign.empty())</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        parentStyleMap[<span class="stringliteral">&quot;text-align&quot;</span>] = m_format.<a class="code" href="classrtf_1_1_formatting.html#a35e2c51c16999c9a2f1d678c28baf9bf">m_horizontalAlign</a>;</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    if (!m_format.m_verticalAlign.empty())</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        parentStyleMap[<span class="stringliteral">&quot;vertical-align&quot;</span>] = m_format.m_verticalAlign;</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="comment">// Get element style</span></div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    if (!m_format.m_font.m_name.empty())</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;        elementStyleMap[<span class="stringliteral">&quot;font-family&quot;</span>] = <span class="stringliteral">&quot;&#39;&quot;</span>+ m_format.m_font.m_name +<span class="stringliteral">&quot;&#39;&quot;</span>;</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    if (m_format.m_fontSize)</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        elementStyleMap[<span class="stringliteral">&quot;font-size&quot;</span>] = std::to_string(m_format.m_fontSize) +<span class="stringliteral">&quot;px&quot;</span>;</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    <span class="keywordflow">if</span> (m_format.m_fontColor.m_red != -1)</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        elementStyleMap[<span class="stringliteral">&quot;color&quot;</span>] = m_format.m_fontColor.toString();</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <span class="keywordflow">if</span> (m_format.m_backgroundColor.m_red != -1)</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        elementStyleMap[<span class="stringliteral">&quot;background&quot;</span>] = m_format.m_backgroundColor.toString();</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <span class="comment">// Set parent style</span></div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    std::string style;</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; sm : parentStyleMap)</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        style += sm.first + <span class="stringliteral">&quot;:&quot;</span> + sm.second + <span class="stringliteral">&quot;; &quot;</span>;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <span class="keywordflow">if</span> (!style.empty() &amp;&amp; nodeName == <span class="stringliteral">&quot;parent&quot;</span>)</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        node.append_attribute(<span class="stringliteral">&quot;style&quot;</span>) = style.c_str();</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <span class="comment">// Set element style</span></div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    style.clear();</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; sm : elementStyleMap)</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        style += sm.first + <span class="stringliteral">&quot;:&quot;</span> + sm.second + <span class="stringliteral">&quot;; &quot;</span>;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    <span class="keywordflow">if</span> (m_format.m_fontSize        == lastFormat.<a class="code" href="classrtf_1_1_formatting.html#a263ecd6be00cd636bbfffdc523d0bad1">m_fontSize</a>  &amp;&amp;</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        m_format.m_font            == lastFormat.<a class="code" href="classrtf_1_1_formatting.html#a84ea5c5641c3b7e46cd2084fe46cd1f4">m_font</a>      &amp;&amp;</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        m_format.m_fontColor       == lastFormat.<a class="code" href="classrtf_1_1_formatting.html#ad59c5977351d9240b2f52297e09fd7f8">m_fontColor</a> &amp;&amp;</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        m_format.m_backgroundColor == lastFormat.<a class="code" href="classrtf_1_1_formatting.html#a72fba585e402349dc22f903602932111">m_backgroundColor</a> &amp;&amp;</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        m_format.m_horizontalAlign == lastFormat.<a class="code" href="classrtf_1_1_formatting.html#a35e2c51c16999c9a2f1d678c28baf9bf">m_horizontalAlign</a> &amp;&amp;</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        m_format.m_verticalAlign   == lastFormat.<a class="code" href="classrtf_1_1_formatting.html#a17a5883a2d8486353dfa7683d29c27a9">m_verticalAlign</a></div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    ) {</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;        node = m_nodeList.back();</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    }</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!style.empty()) {</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        node = node.append_child(<span class="stringliteral">&quot;span&quot;</span>);</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        node.append_attribute(<span class="stringliteral">&quot;style&quot;</span>) = style.c_str();</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        m_nodeList.emplace_back(node);</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    }</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    addStyle(node, <span class="stringliteral">&quot;b&quot;</span>,   m_format.m_isBold,       lastFormat.<a class="code" href="classrtf_1_1_formatting.html#a7ed672340072a8e5af6073e4c8226bfc">m_isBold</a>);</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    addStyle(node, <span class="stringliteral">&quot;i&quot;</span>,   m_format.m_isItalic,     lastFormat.<a class="code" href="classrtf_1_1_formatting.html#a23850526d7093669cbecd9c607301339">m_isItalic</a>);</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    addStyle(node, <span class="stringliteral">&quot;u&quot;</span>,   m_format.m_isUnderlined, lastFormat.<a class="code" href="classrtf_1_1_formatting.html#a46f4f02c323e85f2092825c8b32aec27">m_isUnderlined</a>);</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    addStyle(node, <span class="stringliteral">&quot;s&quot;</span>,   m_format.m_isStruckOut,  lastFormat.<a class="code" href="classrtf_1_1_formatting.html#aab925f1e4b6688d682fbeb5609375bd1">m_isStruckOut</a>);</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    addStyle(node, <span class="stringliteral">&quot;sub&quot;</span>, m_format.m_isSub,        lastFormat.<a class="code" href="classrtf_1_1_formatting.html#ad2b5266e49fa3205ef8e4d1da64e58bd">m_isSub</a>);</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    addStyle(node, <span class="stringliteral">&quot;sup&quot;</span>, m_format.m_isSup,        lastFormat.<a class="code" href="classrtf_1_1_formatting.html#aa30dc62479fefcb95d9ae11add42cd00">m_isSup</a>);</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    m_formatStack.emplace_back(m_format);</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    m_text += str;</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;}</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;}  <span class="comment">// End namespace</span></div><div class="ttc" id="classrtf_1_1_formatting_html_a23850526d7093669cbecd9c607301339"><div class="ttname"><a href="classrtf_1_1_formatting.html#a23850526d7093669cbecd9c607301339">rtf::Formatting::m_isItalic</a></div><div class="ttdeci">bool m_isItalic</div><div class="ttdef"><b>Definition:</b> formatting.hpp:141</div></div>
<div class="ttc" id="classrtf_1_1_font_html_a5a4b03ec23fc56f99a1706f5b284ccbca056ebdf27aa5d7324a0dc7870c4a9a78"><div class="ttname"><a href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca056ebdf27aa5d7324a0dc7870c4a9a78">rtf::Font::FF_SERIF</a></div><div class="ttdoc">Roman (variable width, serifed) </div><div class="ttdef"><b>Definition:</b> formatting.hpp:73</div></div>
<div class="ttc" id="classrtf_1_1_color_html"><div class="ttname"><a href="classrtf_1_1_color.html">rtf::Color</a></div><div class="ttdoc">Color information for font, background, borders. </div><div class="ttdef"><b>Definition:</b> formatting.hpp:25</div></div>
<div class="ttc" id="classrtf_1_1_font_html_a5a4b03ec23fc56f99a1706f5b284ccbca727772ca570769a78885c7be944305d7"><div class="ttname"><a href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca727772ca570769a78885c7be944305d7">rtf::Font::FF_SANS_SERIF</a></div><div class="ttdoc">Swiss (variable width, sans-serifed) </div><div class="ttdef"><b>Definition:</b> formatting.hpp:74</div></div>
<div class="ttc" id="classrtf_1_1_font_html_a5a4b03ec23fc56f99a1706f5b284ccbcac20b2938c3710505526750367ac9e576"><div class="ttname"><a href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbcac20b2938c3710505526750367ac9e576">rtf::Font::FF_NONE</a></div><div class="ttdoc">None (unknown or don&amp;#39;t care) </div><div class="ttdef"><b>Definition:</b> formatting.hpp:72</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_a17a5883a2d8486353dfa7683d29c27a9"><div class="ttname"><a href="classrtf_1_1_formatting.html#a17a5883a2d8486353dfa7683d29c27a9">rtf::Formatting::m_verticalAlign</a></div><div class="ttdeci">std::string m_verticalAlign</div><div class="ttdef"><b>Definition:</b> formatting.hpp:193</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_a46f4f02c323e85f2092825c8b32aec27"><div class="ttname"><a href="classrtf_1_1_formatting.html#a46f4f02c323e85f2092825c8b32aec27">rtf::Formatting::m_isUnderlined</a></div><div class="ttdeci">bool m_isUnderlined</div><div class="ttdef"><b>Definition:</b> formatting.hpp:149</div></div>
<div class="ttc" id="classrtf_1_1_font_html_a5a4b03ec23fc56f99a1706f5b284ccbca572189f9ff6626d84a2b3af3e419495f"><div class="ttname"><a href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca572189f9ff6626d84a2b3af3e419495f">rtf::Font::FF_MONOSPACE</a></div><div class="ttdoc">Modern (fixed width, serifed or sans-serifed) </div><div class="ttdef"><b>Definition:</b> formatting.hpp:75</div></div>
<div class="ttc" id="classrtf_1_1_color_html_a7333ebfdcbb73e7eda4c40d1ec4ac94f"><div class="ttname"><a href="classrtf_1_1_color.html#a7333ebfdcbb73e7eda4c40d1ec4ac94f">rtf::Color::m_red</a></div><div class="ttdeci">int m_red</div><div class="ttdef"><b>Definition:</b> formatting.hpp:46</div></div>
<div class="ttc" id="classrtf_1_1_html_text_html_ab8cee38e34358e58157c5d1195a8b680"><div class="ttname"><a href="classrtf_1_1_html_text.html#ab8cee38e34358e58157c5d1195a8b680">rtf::HtmlText::m_tree</a></div><div class="ttdeci">pugi::xml_document m_tree</div><div class="ttdef"><b>Definition:</b> formatting.hpp:268</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_ad59c5977351d9240b2f52297e09fd7f8"><div class="ttname"><a href="classrtf_1_1_formatting.html#ad59c5977351d9240b2f52297e09fd7f8">rtf::Formatting::m_fontColor</a></div><div class="ttdeci">Color m_fontColor</div><div class="ttdef"><b>Definition:</b> formatting.hpp:187</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_a263ecd6be00cd636bbfffdc523d0bad1"><div class="ttname"><a href="classrtf_1_1_formatting.html#a263ecd6be00cd636bbfffdc523d0bad1">rtf::Formatting::m_fontSize</a></div><div class="ttdeci">int m_fontSize</div><div class="ttdef"><b>Definition:</b> formatting.hpp:183</div></div>
<div class="ttc" id="classrtf_1_1_font_html"><div class="ttname"><a href="classrtf_1_1_font.html">rtf::Font</a></div><div class="ttdoc">Font information. </div><div class="ttdef"><b>Definition:</b> formatting.hpp:59</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_a35e2c51c16999c9a2f1d678c28baf9bf"><div class="ttname"><a href="classrtf_1_1_formatting.html#a35e2c51c16999c9a2f1d678c28baf9bf">rtf::Formatting::m_horizontalAlign</a></div><div class="ttdeci">std::string m_horizontalAlign</div><div class="ttdef"><b>Definition:</b> formatting.hpp:191</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_a84ea5c5641c3b7e46cd2084fe46cd1f4"><div class="ttname"><a href="classrtf_1_1_formatting.html#a84ea5c5641c3b7e46cd2084fe46cd1f4">rtf::Formatting::m_font</a></div><div class="ttdeci">Font m_font</div><div class="ttdef"><b>Definition:</b> formatting.hpp:185</div></div>
<div class="ttc" id="classrtf_1_1_html_text_html_ab763a0857a581861b88ce7b032ee687b"><div class="ttname"><a href="classrtf_1_1_html_text.html#ab763a0857a581861b88ce7b032ee687b">rtf::HtmlText::m_addStyle</a></div><div class="ttdeci">bool m_addStyle</div><div class="ttdef"><b>Definition:</b> formatting.hpp:272</div></div>
<div class="ttc" id="classrtf_1_1_font_html_a5a4b03ec23fc56f99a1706f5b284ccbc"><div class="ttname"><a href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbc">rtf::Font::fontFamily</a></div><div class="ttdeci">fontFamily</div><div class="ttdef"><b>Definition:</b> formatting.hpp:71</div></div>
<div class="ttc" id="classrtf_1_1_color_html_a593f64ddc046b5955e21d42cf404ecb2"><div class="ttname"><a href="classrtf_1_1_color.html#a593f64ddc046b5955e21d42cf404ecb2">rtf::Color::m_blue</a></div><div class="ttdeci">int m_blue</div><div class="ttdef"><b>Definition:</b> formatting.hpp:50</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_aa30dc62479fefcb95d9ae11add42cd00"><div class="ttname"><a href="classrtf_1_1_formatting.html#aa30dc62479fefcb95d9ae11add42cd00">rtf::Formatting::m_isSup</a></div><div class="ttdeci">bool m_isSup</div><div class="ttdef"><b>Definition:</b> formatting.hpp:181</div></div>
<div class="ttc" id="classrtf_1_1_font_html_a5a4b03ec23fc56f99a1706f5b284ccbca502cd5f31664c688bca6ae3d48d68fc4"><div class="ttname"><a href="classrtf_1_1_font.html#a5a4b03ec23fc56f99a1706f5b284ccbca502cd5f31664c688bca6ae3d48d68fc4">rtf::Font::FF_CURSIVE</a></div><div class="ttdoc">Script (cursive) </div><div class="ttdef"><b>Definition:</b> formatting.hpp:76</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_ad2b5266e49fa3205ef8e4d1da64e58bd"><div class="ttname"><a href="classrtf_1_1_formatting.html#ad2b5266e49fa3205ef8e4d1da64e58bd">rtf::Formatting::m_isSub</a></div><div class="ttdeci">bool m_isSub</div><div class="ttdef"><b>Definition:</b> formatting.hpp:173</div></div>
<div class="ttc" id="classrtf_1_1_color_html_afc27ed79634d577c913317d5d91f050c"><div class="ttname"><a href="classrtf_1_1_color.html#afc27ed79634d577c913317d5d91f050c">rtf::Color::m_green</a></div><div class="ttdeci">int m_green</div><div class="ttdef"><b>Definition:</b> formatting.hpp:48</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_a7ed672340072a8e5af6073e4c8226bfc"><div class="ttname"><a href="classrtf_1_1_formatting.html#a7ed672340072a8e5af6073e4c8226bfc">rtf::Formatting::m_isBold</a></div><div class="ttdeci">bool m_isBold</div><div class="ttdef"><b>Definition:</b> formatting.hpp:133</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_aab925f1e4b6688d682fbeb5609375bd1"><div class="ttname"><a href="classrtf_1_1_formatting.html#aab925f1e4b6688d682fbeb5609375bd1">rtf::Formatting::m_isStruckOut</a></div><div class="ttdeci">bool m_isStruckOut</div><div class="ttdef"><b>Definition:</b> formatting.hpp:157</div></div>
<div class="ttc" id="classrtf_1_1_html_text_html_a31c44064b963190628b79183cfd0cccc"><div class="ttname"><a href="classrtf_1_1_html_text.html#a31c44064b963190628b79183cfd0cccc">rtf::HtmlText::m_nodeList</a></div><div class="ttdeci">std::vector&lt; pugi::xml_node &gt; m_nodeList</div><div class="ttdef"><b>Definition:</b> formatting.hpp:270</div></div>
<div class="ttc" id="classrtf_1_1_color_html_a6e7d4e343801994541d8550d9951a222"><div class="ttname"><a href="classrtf_1_1_color.html#a6e7d4e343801994541d8550d9951a222">rtf::Color::operator==</a></div><div class="ttdeci">bool operator==(const Color &amp;obj) const</div><div class="ttdef"><b>Definition:</b> formatting.cpp:19</div></div>
<div class="ttc" id="classrtf_1_1_color_html_acdb2199339f3ef586c7e42fb35a46e91"><div class="ttname"><a href="classrtf_1_1_color.html#acdb2199339f3ef586c7e42fb35a46e91">rtf::Color::operator=</a></div><div class="ttdeci">Color &amp; operator=(const Color &amp;obj)</div><div class="ttdef"><b>Definition:</b> formatting.cpp:29</div></div>
<div class="ttc" id="classrtf_1_1_html_text_html_afd2bd7cab79422fbbdf1b0089a4a5a23"><div class="ttname"><a href="classrtf_1_1_html_text.html#afd2bd7cab79422fbbdf1b0089a4a5a23">rtf::HtmlText::m_format</a></div><div class="ttdeci">const Formatting &amp; m_format</div><div class="ttdef"><b>Definition:</b> formatting.hpp:262</div></div>
<div class="ttc" id="classrtf_1_1_color_html_af65d99a08f811cd1b4909d9a4f2ac7fd"><div class="ttname"><a href="classrtf_1_1_color.html#af65d99a08f811cd1b4909d9a4f2ac7fd">rtf::Color::toString</a></div><div class="ttdeci">std::string toString() const</div><div class="ttdoc">Convert color to CSS string. </div><div class="ttdef"><b>Definition:</b> formatting.cpp:36</div></div>
<div class="ttc" id="classrtf_1_1_html_text_html"><div class="ttname"><a href="classrtf_1_1_html_text.html">rtf::HtmlText</a></div><div class="ttdoc">Parts of HTML text before adding to tree. </div><div class="ttdef"><b>Definition:</b> formatting.hpp:206</div></div>
<div class="ttc" id="namespacertf_html"><div class="ttname"><a href="namespacertf.html">rtf</a></div><div class="ttdoc">RTF files into HTML сonverter. </div></div>
<div class="ttc" id="classrtf_1_1_formatting_html"><div class="ttname"><a href="classrtf_1_1_formatting.html">rtf::Formatting</a></div><div class="ttdoc">Text formatting information. </div><div class="ttdef"><b>Definition:</b> formatting.hpp:115</div></div>
<div class="ttc" id="classrtf_1_1_formatting_html_a72fba585e402349dc22f903602932111"><div class="ttname"><a href="classrtf_1_1_formatting.html#a72fba585e402349dc22f903602932111">rtf::Formatting::m_backgroundColor</a></div><div class="ttdeci">Color m_backgroundColor</div><div class="ttdef"><b>Definition:</b> formatting.hpp:189</div></div>
<div class="ttc" id="classrtf_1_1_font_html_a220bf3f3666f937ae29a5ef49abbc65d"><div class="ttname"><a href="classrtf_1_1_font.html#a220bf3f3666f937ae29a5ef49abbc65d">rtf::Font::m_name</a></div><div class="ttdeci">std::string m_name</div><div class="ttdef"><b>Definition:</b> formatting.hpp:81</div></div>
<div class="ttc" id="classrtf_1_1_html_text_html_a79aed437e84ea299e0959098996fbd90"><div class="ttname"><a href="classrtf_1_1_html_text.html#a79aed437e84ea299e0959098996fbd90">rtf::HtmlText::m_formatStack</a></div><div class="ttdeci">std::deque&lt; Formatting &gt; m_formatStack</div><div class="ttdef"><b>Definition:</b> formatting.hpp:264</div></div>
<div class="ttc" id="classrtf_1_1_html_text_html_a2a52e7929dcad54129d7b8d0f4f8089b"><div class="ttname"><a href="classrtf_1_1_html_text.html#a2a52e7929dcad54129d7b8d0f4f8089b">rtf::HtmlText::m_text</a></div><div class="ttdeci">std::string m_text</div><div class="ttdef"><b>Definition:</b> formatting.hpp:266</div></div>
<div class="ttc" id="classrtf_1_1_html_text_html_ae9fd2e2bf0b5f93bfd6654442b271772"><div class="ttname"><a href="classrtf_1_1_html_text.html#ae9fd2e2bf0b5f93bfd6654442b271772">rtf::HtmlText::add</a></div><div class="ttdeci">void add(T str)</div><div class="ttdoc">Add text and insert style tags. </div><div class="ttdef"><b>Definition:</b> formatting.hpp:277</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_87a455bccb09a92130c26a11a880c98a.html">libs</a></li><li class="navelem"><a class="el" href="dir_ffbcd8de0e3a98e11beaf3347bc22514.html">fileext</a></li><li class="navelem"><a class="el" href="dir_50ea6f647dd76702afc4ee39f597a9ab.html">rtf</a></li><li class="navelem"><a class="el" href="formatting_8hpp.html">formatting.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
